package com.jingtai.core.entity.supply;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;

import java.math.BigDecimal;

import java.util.Date;

/**
 * 供应商售卖规则表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_supply_goods_rule")
@ApiModel(value = "供应商售卖规则表", description = "供应商售卖规则表")
public class SupplyGoodsRule  extends BaseEntity implements Serializable {




	/**
	 * 供应商ID
	 */
	@CApiModelProperty(value = "供应商ID",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Long supplyId;

	/**
	 * 商品编码
	 */
	@CApiModelProperty(value = "商品编码",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String goodsCode;

	/**
	 * 商品属性ID
	 */
	@CApiModelProperty(value = "商品属性ID",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Long goodsWarehouseId;

	/**
	 * 购买数量
	 */
	@CApiModelProperty(value = "购买数量",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer size;

	/**
	 * 单价
	 */
	@CApiModelProperty(value = "单价",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private BigDecimal salePrice;

}
